package com.invokestatic.shooter.Screens;

import com.invokestatic.shooter.Input;
import com.invokestatic.shooter.Level.*;

public class GameScreen extends Screen {

	public static boolean countdown = true;
	public static int time = 0;
	public static Level level;
	public GameScreen() {
		level = new Level(this, 30, 13);
		
	}
//	public GameScreen(Level l) 
//	}
	
	
	@Override
	public void render() {
		spriteBatch.begin();
		if(countdown) drawStringCentered((3 - (time/60))+"", 1280/2, 720/2);
		level.render(this);
		drawString("> 0.1.0 ALPHA", 0, 720-16);
		spriteBatch.end();
	}

	@Override
	public void tick(Input input) {
		level.tick(input);
		if(countdown && time >= 180) countdown = !countdown;
		time++;
	}

}
